class CreateProducts < ActiveRecord::Migration
  def self.up
    create_table :products do |t|
      t.string :model, :length => 100
      t.decimal :price, :precision => 7, :scale => 2
      t.decimal :promotional_price, :precision => 7, :scale => 2
      t.boolean :display, :default => true
      t.integer :show_home, :default => 0
      t.integer :listing_order, :default => 0

      t.timestamps
    end
  end

  def self.down
    drop_table :products
  end
end
